<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../static/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/css/font-awesome.min.css">
    <link rel="stylesheet" href="../../static/plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../static/plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../static/css/main.css">
    <script src="../../static/libs/jquery.min.js"></script>
    <script src="../../static/plugins/layer/layer.js"></script>
    <script src="../../static/libs/bootstrap.min.js"></script>
    <script src="../../static/libs/vue.min.js"></script>
    <script src="../../static/plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../static/plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../static/plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../static/js/common.js"></script>
</head>

<body>
    <div id="rrapp" v-cloak>
        <div v-show="showList">
            <div class="row" style="border-top:0px;padding:0px">
                <div class="col-md-6" style="border-top:0px;padding:0px">
                    <div class="grid-btn">
                        <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                        <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                        <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
                    </div>
                </div>
                <!-- /.col-lg-6 -->
                <div class="col-md-4 pull-right" style="border-top:0px;padding:0px">
                    <div class="input-group">
                        <input id="search" type="text" class="form-control" placeholder="请输入车牌号"/>
                        <span class="input-group-btn">  
                           <a class="btn btn-primary" @click="search"><i class="fa fa-search" aria-hidden="true"></i></a>
                        </span>
                    </div>
                </div>
                <!-- /.col-lg-6 -->
            </div>
            <!-- /.row -->
            <table id="jqGrid"></table>
            <div id="jqGridPager"></div>
        </div>
        <div v-show="!showList" class="panel panel-default">
            <div class="panel-heading">{{title}}</div>
            <div class="panel-body">
                <div class="form-group">
                    <label>车牌号码</label>
                    <input type="text" class="form-control" v-model="carts.idcard" placeholder="车牌号码" />
                </div>
                <div class="form-group">
                    <label>内容</label>
                    <textarea class="form-control" v-model="carts.sys_content"></textarea>
                </div>
                <!-- <div class="form-group">
                    <label>创建时间</label>
                    <input readonly="readonly" type="text" class="form-control" v-model="carts.sys_create_time" />
                </div>
                <div class="form-group">
                    <label>最后一次修改时间</label>
                    <input readonly="readonly" type="text" class="form-control" v-model="carts.last_modify_time" />
                </div> -->
            </div>
            <div class="panel-footer">
                <div class="form-group">
                    <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定" /> &nbsp;&nbsp;
                    <input type="button" class="btn btn-warning" @click="reload" value="返回" />
                </div>
            </div>
        </div>
    </div>
    <script src="../../static/js/modules/carts.js"></script>
</body>

</html>